Ext.define('Ext.desk.Frame.Desktop',{
	extend: 'Ext.panel.Panel',
	layout: 'border',
	requires : [/*'Ext.ux.TabCloseMenu',*/'Module.sjfx.SyjszsNow'],
	bodyPadding: '3 5 3 3',
	bodyStyle:{background: 'url(images/index/大背景.jpg) no-repeat'},
	defaults:{border:false},
	baseCls : 'x-plain',
	items: [{
		region: 'north',
		height: 140,
		layout: 'fit',
		baseCls : 'x-plain',
		listeners: {
			boxready: function(p){
				Ext.Loader.loadScript({
					url: 'javascript/frame/control/Header.js',
					onLoad: function(){
						p.add({
							xtype: 'deskheader',
							border: false
						});
					}
				});
				
				Ext.Loader.loadScript({url: 'javascript/frame/control/Configer.js'});
			}
		}
	},{
		titleAlign: 'center',
	    title: '首页',
		region: 'west',
		id: 'sys-desk-nav-c',
		width: navwidth,
		layout: 'fit',
		margin: '1 0 0 0',
		split: true,
		maxWidth: 400,
		minWidth: 200,
		border: 2,
		frame: true,
		listeners: {
			boxready: function(p){
				Ext.Loader.loadScript({
					url: 'javascript/frame/control/NavigationPanel.js',
					onLoad: function(){
						p.add({
							xtype: 'desknavigationpanel',
							id: 'sys-desk-navigation',
							border: false,
							listeners: {
								boxready: function(nvp){
								}
							}
						});
					}
				});
				
				Ext.Loader.loadScript({url: 'javascript/frame/control/Configer.js'});
				Ext.Loader.loadScript({url: 'javascript/fs/FusionCharts.js'});
			}
		}
	},{
		region: 'center',
		xtype: 'tabpanel',
		id: 'desk-content',
		margin: '1 0 0 0',
		defaults: {padding: 1},
		frame: true,
		items: [{
			id: 'menu-Module.sjfx.SyjszsNow',
			ptitle: '首页',
			xtype: 'syjszs',
			border: true
		}],
//		plugins: Ext.create('Ext.ux.TabCloseMenu'),
		listeners: {
			tabchange: function(tab,c){
				var nv = Ext.getCmp('sys-desk-nav-c');
				Ext.getCmp('desk-map').setText('当前位置：'+c.ptitle+'>>'+c.title);
			}
		}
	}]
});
